<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibQQt: gumbo-query</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibQQt
   &#160;<span id="projectnumber">v3.1</span>
   </div>
   <div id="projectbrief">开源、跨平台Qt应用程序框架中间件</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">gumbo-query </div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><p>A C++ library that provides jQuery-like selectors for Google's Gumbo-Parser.</p>
<p>Selector engine is an implementation based on <a href="https://github.com/andybalholm/cascadia">cascadia</a>.</p>
<h2>Installation</h2>
<p>2 ways:</p>
<p>Through homebrew (Recommended): </p><div class="fragment"><div class="line">$ brew install gumbo-query</div></div><!-- fragment --><p> Through git: </p><div class="fragment"><div class="line">$ git clone https://github.com/Falven/gumbo-query</div><div class="line">$ cd gumbo-query/build &amp;&amp; cmake .. &amp;&amp; make &amp;&amp; make test</div><div class="line">$ sudo make install</div></div><!-- fragment --><p> And to generate Doxygen documentation: </p><div class="fragment"><div class="line">$ make doc</div></div><!-- fragment --><h2>Usage</h2>
<div class="fragment"><div class="line">{C++}</div><div class="line">#include &lt;iostream&gt;</div><div class="line">#include &lt;string&gt;</div><div class="line">#include &quot;Document.h&quot;</div><div class="line">#include &quot;Node.h&quot;</div><div class="line"></div><div class="line">int main(int argc, char * argv[])</div><div class="line">{</div><div class="line">  std::string page(&quot;&lt;h1&gt;&lt;a&gt;some link&lt;/a&gt;&lt;/h1&gt;&quot;);</div><div class="line">  CDocument doc;</div><div class="line">  doc.parse(page.c_str());</div><div class="line"></div><div class="line">  CSelection c = doc.find(&quot;h1 a&quot;);</div><div class="line">  std::cout &lt;&lt; c.nodeAt(0).text() &lt;&lt; std::endl; // some link</div><div class="line">  return 0;</div><div class="line">}</div></div><!-- fragment --> </div></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
